﻿<Window x:Class="ActiveStory.UI.LinkDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Page Links" Height="396" Width="514" ResizeMode="NoResize" Name="PageLinksDialog" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" Icon="/ActiveStoryEnhanced;component/Content/icon.png">
    <Grid>
        <TabControl Name="MainTabControl" TabStripPlacement="Top">
            <TabItem Header="Link To Page">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="70" />
                        <ColumnDefinition Width="70" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="200" />
                        <RowDefinition Height="102" />
                        <RowDefinition Height="25" />
                    </Grid.RowDefinitions>
                    <Border Grid.ColumnSpan="3" BorderBrush="Black" CornerRadius="10,10,10,10">
                        
                            <Image DockPanel.Dock="Top" Source="{Binding ElementName=PageListBox,Path=SelectedItem.TempThumbnailPath}"></Image>
                        
                    </Border>

                    <ListBox ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0,1,0,0" BorderBrush="Black" Style="{StaticResource HorizontalListBox}" Grid.ColumnSpan="3" ItemTemplate="{StaticResource ImageListTemplate}" HorizontalContentAlignment="Center" Name="PageListBox" Grid.Row="1" TabIndex="0">
                    </ListBox>

                    <Label Name="PageToLinkQuestionLabel" Grid.Row="2">Which page should this be linked to?</Label>
                    <Button Grid.Row="2" Grid.Column="1" VerticalAlignment="Bottom" Height="25" Name="LinkToPageOkButton" IsDefault="True" TabIndex="3" Click="LinkToPageOkButton_Click">OK</Button>
                    <Button Grid.Row="2" Grid.Column="2" VerticalAlignment="Bottom" Height="25" Name="LinkToPageCancelButton" IsCancel="True" TabIndex="4">Cancel</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Remove Link">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="70" />
                        <ColumnDefinition Width="70" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="25" />
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Horizontal">
                        <Label>Are you sure you want to remove the link to page</Label>
                        <Label Name="PageNumberValue"></Label>
                    </StackPanel>
                    <Image Name="RemoveLinkImage" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"></Image>
                    <Button Name="RemoveLinkYesButton" Grid.Row="1" Grid.Column="1" Click="RemoveLinkYesButton_Click" TabIndex="0">Yes</Button>
                    <Button Grid.Row="1" Grid.Column="2" IsCancel="True" TabIndex="1">No</Button>
                </Grid>
                
            </TabItem>
        </TabControl>
    </Grid>
</Window>
